<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right" style="font-size: 16px;">
      <el-breadcrumb-item :to="{ path: '/' }"><i class="el-icon-s-promotion"></i> 后台管理</el-breadcrumb-item>
    </el-breadcrumb>

    <el-divider></el-divider>

    <el-button @click="logout">退出登录</el-button>

    <el-empty description="后台管理主页正在开发中，敬请期待……"></el-empty>
  </div>
</template>

<script>
import BaseUrl from "@/http/BaseUrl";
import TokenAxios from "@/http/TokenAxios";

export default {
  methods: {
    logout() {
      let url = BaseUrl.PASSPORT + '/passport/logout';

      TokenAxios.post(url).then((response) => {
        localStorage.clear();
        this.$router.push('/login');
      });
    }
  },
}
</script>
